package com.shujia.wyh.day06.homework.test8;

public class Actor extends Person {
    //毕业院校，代表作
    private String school;
    private String works;

    public Actor() {
    }

    public Actor(String name, int age, String gender, String school, String works) {
        super(name, age, gender);
        this.school = school;
        this.works = works;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getWorks() {
        return works;
    }

    public void setWorks(String works) {
        this.works = works;
    }

    @Override
    public void show() {
        System.out.println("大家好！我是" + getName());
        System.out.println("今年" + getAge());
        System.out.println("我毕业于:" + getSchool());
        System.out.println("代表作有:" + getWorks());
    }
}
